from enum import Enum, auto


class LowNameEnum(Enum):
    def _generate_next_value_(name, start, count, last_values):
        return str(name).lower()


class Proto(LowNameEnum):
    USER_LOGIN = auto()
    USER_LOGOUT = auto()
    USER_SAME_LOGIN = auto()
    USER_LIST = auto()

    ROOM_CREATE = auto()
    ROOM_LEAVE = auto()
    ROOM_JOIN = auto()
    ROOM_LIST = auto()

    START_SYNC = auto()
    STOP_SYNC = auto()
